package com.easyapi.dao.mapper.api;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easyapi.dao.entity.api.ApiCenterProjectDatasource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApiCenterProjectDatasourceMapper extends BaseMapper<ApiCenterProjectDatasource> {
    List<ApiCenterProjectDatasource> listByProjectId(@Param("projectId") Long projectId);
    ApiCenterProjectDatasource getByProjectIdAndDatasourceId(@Param("projectId") Long projectId, @Param("datasourceId") Long datasourceId);
}